﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using CMSAR.Domain;
namespace CMSAR.FluentNHibernate.FluentMapping
{
  public class WidgetInstanceMapping:ClassMap<WidgetInstance>
    {

      public WidgetInstanceMapping()
      {
          Id(x => x.Id);
          Map(x => x.Container).Not.Nullable();
          Map(x => x.ContainerOrdinal).Not.Nullable();
          References(x => x.Page);
          References(x => x.WidgetType);

      }
    }
}
